{extend name="Public/content"/}
{block name='content'}   
<div class="layui-col-md9">
    <form class="layui-form modal-form-box" action="__SELF__" data-auto="true" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">支付宝<br/>收款二维码</label>
            <div class="layui-input-block">
                <input type="hidden" name="alipay_img" value="{:sysconf('alipay_img')}" id='img'/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">支付宝收款账号</label>
            <div class="layui-input-block">
                <input type="text" name="alipay_account" value="{:sysconf('alipay_account')}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">支付宝收款姓名</label>
            <div class="layui-input-block">
                <input type="text" name="alipay_name" value="{:sysconf('alipay_name')}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">流量大厅图片</label>
            <div class="layui-input-block">
                <input type="text" name="task_img" value="{:sysconf('task_img')}" class="layui-input" id='taskImg'>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">流量发布页图片</label>
            <div class="layui-input-block">
                <input type="text" name="add_img" value="{:sysconf('add_img')}" class="layui-input" id='addImg'>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">套餐介绍</label>
            <div class="layui-input-block">
                <textarea name="package" class="layui-textarea" required id="editor">{:sysconf('package')}</textarea>
            </div>
        </div>

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存数据</button>
        </div>
    </form>
</div>
<script>
    require(['ckeditor'], function() {
        window.createEditor('#editor', {height: 300});
    });
    $(function() {
        $('#img').uploadOneImage();
        $('#addImg').uploadOneImage();
        $('#taskImg').uploadOneImage();
    });
</script>
{/block}